<?php 

$host="localhost"; // host server
$username="root"; // mysql username
$pass=""; //mysql pw
$db_name="mxmesssagethread"; //database name
$tbl_name="message"; //table name	

//connect to server and select database
$conn = mysql_connect("$host", "$username", "$pass") or die("cannot connect to database");
mysql_select_db("$db_name") or die("cannot select database");
?>